function del(obj,url,param,success){
    obj.post(url,param,function(data) {
        if(data.code == 10000){
            success();
            layer.msg('删除成功！',{
                icon: 1,
                time: 1000
            },function(){window.location.reload()});
        }else{
            layer.msg(data.msg,{
                icon: 2,
                time: 1000
            });
        }
    });
}